##################################
# 
# Authors: ZhangXuelian
# 	
# 
# Changes:
# 	
#	
##################################
#-------------------------------------------------
include ../config.mk
include ../sdk.mk

LDFLAGS += -L. -L$(MYLIB)
CFLAGS += -g -O0 -I. -I../include -D__LINUX_FILE__
EXTRALIB += -L../lib -lae_main -lae_login -lae_stl -lae_im -lae_mq -lae_cmd -lae_record -lae_status -lae_pthread -lae_net -lae_protocol -lae_utility 
EXTRALIB += -ldl -lm -lc  

ifeq ($(PLATFORM),Android)
EXTRALIB += -lpthread
LDFLAGS += -DHAVE_PTHREADS
endif

ifeq ($(PLATFORM),Linux)
EXTRALIB += -lpthread
LDFLAGS += -DHAVE_PTHREADS
endif

#-------------------------------------------------
#OBJS1 = demo1.o internal.o
OBJS2 = demo2.o
#-------------------------------------------------
#TARGET1 = demo1
TARGET2 = demo2
#-------------------------------------------------
all : $(TARGET2) #$(TARGET2)
#$(TARGET1) : $(OBJS1)
#	$(CC) $(CFLAGS) -o $@ $(OBJS1) $(LDFLAGS) $(EXTRALIB)	
$(TARGET2) : $(OBJS2)
	$(CC) $(CFLAGS) -o $@ $(OBJS2) $(LDFLAGS) $(EXTRALIB)	
ifeq ($(RELEASE),y)	
#	$(STRIP) $(TARGET1) $(TARGET2)
endif	

.PHONY: clean

clean: 
	rm -f demo1 demo2
	rm -f *.o    
